package com.yxjwzpx.management.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 维保计划对象 maintenance_plan
 * 
 * @author yxjwzpx
 * @date 2025-04-09
 */
public class MaintenancePlan extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 维保计划ID，主键 */
    private Long planId;

    /** 船舶ID，表示计划针对的船舶 */
    @Excel(name = "船舶ID，表示计划针对的船舶")
    private Long shipId;

    /** 维保公司ID，执行该计划的公司 */
    @Excel(name = "维保公司ID，执行该计划的公司")
    private Long companyId;

    /** 负责人ID，具体执行维护的人员（可为空，表示尚未指派具体人员或由公司统筹） */
    @Excel(name = "负责人ID，具体执行维护的人员", readConverterExp = "可=为空，表示尚未指派具体人员或由公司统筹")
    private Long staffId;

    /** 故障报告ID（如果此计划是为处理特定故障报修，则关联对应报告；若为预防性维护计划，可为空） */
    @Excel(name = "故障报告ID", readConverterExp = "如=果此计划是为处理特定故障报修，则关联对应报告；若为预防性维护计划，可为空")
    private Long reportId;

    /** 计划执行日期（预定维护的日期） */
    @Excel(name = "计划执行日期", readConverterExp = "预=定维护的日期")
    private Date planDate;

    /** 完成日期（实际完成维护的日期，计划完成后填写） */
    @Excel(name = "完成日期", readConverterExp = "实=际完成维护的日期，计划完成后填写")
    private Date completionDate;

    /** 维护内容说明 */
    @Excel(name = "维护内容说明")
    private String planDetails;

    /** 计划状态（0=待执行，1=进行中，2=已完成，3=已取消） */
    @Excel(name = "计划状态", readConverterExp = "0==待执行，1=进行中，2=已完成，3=已取消")
    private String status;

    /** 预估费用 */
    @Excel(name = "预估费用")
    private BigDecimal estimatedCost;

    /** 实际费用（维护完成后填写实际发生的费用） */
    @Excel(name = "实际费用", readConverterExp = "维=护完成后填写实际发生的费用")
    private BigDecimal actualCost;

    public void setPlanId(Long planId) 
    {
        this.planId = planId;
    }

    public Long getPlanId() 
    {
        return planId;
    }

    public void setShipId(Long shipId) 
    {
        this.shipId = shipId;
    }

    public Long getShipId() 
    {
        return shipId;
    }

    public void setCompanyId(Long companyId) 
    {
        this.companyId = companyId;
    }

    public Long getCompanyId() 
    {
        return companyId;
    }

    public void setStaffId(Long staffId) 
    {
        this.staffId = staffId;
    }

    public Long getStaffId() 
    {
        return staffId;
    }

    public void setReportId(Long reportId) 
    {
        this.reportId = reportId;
    }

    public Long getReportId() 
    {
        return reportId;
    }

    public void setPlanDate(Date planDate) 
    {
        this.planDate = planDate;
    }

    public Date getPlanDate() 
    {
        return planDate;
    }

    public void setCompletionDate(Date completionDate) 
    {
        this.completionDate = completionDate;
    }

    public Date getCompletionDate() 
    {
        return completionDate;
    }

    public void setPlanDetails(String planDetails) 
    {
        this.planDetails = planDetails;
    }

    public String getPlanDetails() 
    {
        return planDetails;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public void setEstimatedCost(BigDecimal estimatedCost) 
    {
        this.estimatedCost = estimatedCost;
    }

    public BigDecimal getEstimatedCost() 
    {
        return estimatedCost;
    }

    public void setActualCost(BigDecimal actualCost) 
    {
        this.actualCost = actualCost;
    }

    public BigDecimal getActualCost() 
    {
        return actualCost;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("planId", getPlanId())
            .append("shipId", getShipId())
            .append("companyId", getCompanyId())
            .append("staffId", getStaffId())
            .append("reportId", getReportId())
            .append("planDate", getPlanDate())
            .append("completionDate", getCompletionDate())
            .append("planDetails", getPlanDetails())
            .append("status", getStatus())
            .append("estimatedCost", getEstimatedCost())
            .append("actualCost", getActualCost())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
